﻿<%@ Page Language="C#" MasterPageFile="~/Admin/SiteAdmin.master" AutoEventWireup="true"
    CodeFile="PhongTro.aspx.cs" Inherits="Admin_PhongTro" Title="Untitled Page" %>

<%@ Register src="../Controls/Pager.ascx" tagname="Pager" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="Server">
   
    <div class="title">
        Phòng trọ
        </div>
    <div class="toolbar">
        <asp:Button ID="btnThem" runat="server" Text="Thêm" PostBackUrl="~/Admin/ThemPhongTro.aspx" />
        <asp:Button Text="Xóa lựa chọn" runat="server" ID="btnDelete" CssClass="multidelete" />
        <br />
        <uc1:Pager ID="pagerTop" runat="server" />
    </div>
   
    <table class="list">
        <thead>
            <tr>
                <th class="cid">
                    <input type="checkbox" id="chkAll" />
                </th>
                <th class="small">
                    Hình
                </th>
                <th>
                    Tên
                </th>
                <th class="small">
                    Giá phòng
                </th>
                <th class="small">
                    Tình trạng
                </th>
                <th class="id">
                    ID
                </th>
            </tr>
        </thead>
        <asp:Repeater runat="server" ID="repProd">
            <AlternatingItemTemplate>
                <tr class="even">
                    <td>
                        <input type="checkbox" name='cid' value='<%#Eval("IDPhongTro") %>' />
                    </td>
                    <td>
                        <img class="image" src='<%#DataAccess.Link.ToHinhDanhSachDiaDiem(Eval("HinhChinh").ToString()) %>'
                            alt='' />
                    </td>
                    <td class="link">
                        <a href='CapNhatPhongTro.aspx?cid=<%#Eval("IDPhongTro") %>'>
                            <%#Eval("Ten")%>
                        </a>
                    </td>
                    <td>
                        <%#Eval("GiaTien", "{0:#.##}")%>
                    </td>
                    <td>
                        <%#Eval("TinhTrang")%>
                    </td>
                    <td class="id">
                        <%#Eval("IDPhongTro")%>
                    </td>
                </tr>
            </AlternatingItemTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <input type="checkbox" name='cid' value='<%#Eval("IDPhongTro") %>' />
                    </td>
                    <td>
                        <img class="image" src='<%#DataAccess.Link.ToHinhDanhSachDiaDiem(Eval("HinhChinh").ToString()) %>'
                            alt='' />
                    </td>
                    <td class="link">
                        <a href='CapNhatPhongTro.aspx?cid=<%#Eval("IDPhongTro") %>'>
                            <%#Eval("Ten")%>
                        </a>
                    </td>
                    <td>
                        <%#Eval("GiaTien", "{0:#.##}")%>
                    </td>
                    <td>
                        <%#Eval("TinhTrang")%>
                    </td>
                    <td class="id">
                        <%#Eval("IDPhongTro")%>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>
    <uc1:Pager ID="pagerBottom" runat="server" />
</asp:Content>
